/*
 * @Description:
 * @Author: HYH
 * @LastEditors: HYH
 * @LastEditTime: 2023-07-07 08:42:01
 */
import request from '@/utils/request'




/**getAllSellerList */
export function getAllSellerList(params) {
  return request({
    url: '/distribution/distributor/getAllSellerList',
    params
  })
}

/**删除商品SKU代做模板申请 */
export function skuTempProxyApplyDelete(id) {
  return request({
    url: `/distribution/skuTempProxyApply/delete/${id}`,
    method: 'DELETE'
  })
}

/**查询商品SKU代做模板申请列表 */
export function list(params) {
  return request({
    url: '/distribution/skuTempProxyApply/list',
    params
  })
}


/**根据申请ID查询代做模板列表 */
export function getSkuProxyTemplateList(params) {
  return request({
    url: '/distribution/skuTempProxy/getSkuProxyTemplateList',
    params
  })
}
/**********************************组合*************************************/


/**根据申请ID查询代做模板列表-组合 */
export function getSkuProxyTemplateListCom(params) {
  return request({
    url: '/distribution/skuTempProxy/getSkuProxyTemplateListCom',
    params
  })
}



/**修改图片 */
export function updateImg(data) {
  return request({
    url: '/distribution/skuTempProxy/updateImg',
    method: 'POST',
    data
  })
}
/**新增商品SKU代做模板-组合 */
export function addCom(data) {
  return request({
    url: '/distribution/skuTempProxy/addCom',
    method: 'POST',
    data
  })
}

/**修改商品SKU代做模板-组合 */
export function editCom(data) {
  return request({
    url: '/distribution/skuTempProxy/editCom',
    method: 'POST',
    data
  })
}
/**完成模板-组合 */
export function completeTempCom(tempId) {
  return request({
    url: `/distribution/skuTempProxy/completeTempCom?tempId=${tempId}`,
  })
}

/**删除商品组合代做模板-组合 */
export function deleteCom(ids) {
  return request({
    url: `/distribution/skuTempProxy/deleteCom/${ids}`,
    method: 'delete',
  })
}

/**验收模板-组合 */
export function acceptanceTempCom(applyId) {
  return request({
    url: `/distribution/skuTempProxyApply/acceptanceTempCom?applyId=${applyId}`,
  })
}


/**********************************组合 end*************************************/



/**********************************单品 *************************************/

/**新增商品SKU代做模板 */
export function add(data) {
  return request({
    url: '/distribution/skuTempProxy/add',
    method: 'POST',
    data
  })
}

/**修改商品SKU代做模板 */
export function edit(data) {
  return request({
    url: '/distribution/skuTempProxy/edit',
    method: 'POST',
    data
  })
}



/**完成模板 */
export function completeTemp(tempId) {
  return request({
    url: `/distribution/skuTempProxy/completeTemp?tempId=${tempId}`,
  })
}


/**验收模板 */
export function acceptanceTemp(applyId) {
  return request({
    url: `/distribution/skuTempProxyApply/acceptanceTemp?applyId=${applyId}`,
  })
}


/**删除商品SKU代做模板 */
export function skuTempProxyDelete(ids) {
  return request({
    url: `/distribution/skuTempProxy/delete/${ids}`,
    method: 'delete',
  })
}

/**代做模板付款 */
export function templateProxyPay(data) {
  return request({
    url: '/distribution/skuTempProxyApply/templateProxyPay',
    method: 'POST',
    data
  })
}

/**********************************单品 end*************************************/


/**卖家线下支付 */
export function sellerPointsPayOffline(data) {
  return request({
    url: '/distributor/distributorPoints/sellerPointsPayOffline',
    method: 'POST',
    data
  })
}















